# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-grequests
_pkgname=grequests
pkgver=0.4.0
pkgrel=3
pkgdesc='Requests + Gevent.'
url='https://pypi.org/project/grequests/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-gevent' 'python2-requests')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('92d061f42ebf9391a5647315120bb48ec87c32a49b27bf6c4a6511d9c419c54fe63cef429faa23e49143e5dd9c1b2dc02f1b9bd873b8b441a0d067c667a69eb2')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

